#include "Encrypt.h"

namespace Jidantou
{

    void ChangeByte(uint8_t *pbuff, int size, int key)
    {
        uint8_t temp;
        key = key % 8;

        for (int i = 0; i < size; i++)
        {
            temp = pbuff[i];
            pbuff[i] <<= key;
            pbuff[i] |= (temp >> (8 - key));
        }

        return;
    }
}